# -*- coding:utf-8 -*-
# --author： jingfeng 
# time: 2018/11/13


from selenium import webdriver
mobile_setting={
    'deviceName': 'iPhone 6 Plus'
}

options = webdriver.ChromeOptions()


options.add_experimental_option('mobileEmulation',mobile_setting)

driver = webdriver.Chrome(chrome_options=options)

# 设置浏览器大小
driver.set_window_size(480,800)